package com.music.service.composer.service;

import org.springframework.beans.factory.annotation.Required;

import com.music.service.composer.dao.ComposerDAO;

public class ComposerServiceImpl implements ComposerService {

	private ComposerDAO mComposerDAO;
	
	public boolean addNewComposer(Long pMemberId, String pComposerName) {
		return getComposerDAO().addNewComposer(pMemberId, pComposerName);
	}

	public boolean deleteComposer(Long pMemberId, Long pComposerId) {
		return getComposerDAO().deleteComposer(pMemberId, pComposerId);
	}

	public boolean editComposerName(Long pMemberId, Long pComposerId,String pComposerName) {
		return getComposerDAO().editComposerName(pMemberId, pComposerId, pComposerName);
	}

	/**
	 * @return the composerDAO
	 */
	public ComposerDAO getComposerDAO() {
		return mComposerDAO;
	}

	/**
	 * @param pComposerDAO the composerDAO to set
	 */
	@Required
	public void setComposerDAO(ComposerDAO pComposerDAO) {
		mComposerDAO = pComposerDAO;
	}

	
}
